var buffer1 = new Buffer('阿里云大学 ');
var buffer2 = new Buffer('edu.aliyun.com');

var buffer3 = Buffer.concat([buffer1,buffer2]);
console.log("buffer3 内容: " + buffer3.toString());

var buffer1 = new Buffer('ABC');
var buffer2 = new Buffer('DEF');
var result = buffer1.compare(buffer2);
if(result < 0) {
    console.log(buffer1 + " 在 " + buffer2 + "之前");
}else if(result == 0){
    console.log(buffer1 + " 与 " + buffer2 + "相同");
}else {
    console.log(buffer1 + " 在 " + buffer2 + "之后");
}